CC = gcc
CFLAGS = -O3
INCLUDE = -I./include
COMPRESS = ./bin/compress
DECOMPRESS = ./bin/decompress

all: compress decompress

compress: ./src/compress.c
	$(CC) $(CFLAGS) $(INCLUDE) ./src/compress.c -o $(COMPRESS)

compress_old: ./src/compress_old.c
	$(CC) $(CFLAGS) $(INCLUDE) ./src/compress_old.c -o ./bin/compress_old

decompress: ./src/decompress.c
	$(CC) $(CFLAGS) $(INCLUDE) ./src/decompress.c -o $(DECOMPRESS)

docs:
	doxygen doxygen_config
	
clean:
	rm -rf *~ ./bin/* ./docs/* ./output/* ./src/*~ ./include/*~ $(COMPRESS) $(DECOMPRESS)


	
